Step 1 - Import content and create the background
In this step you first create and prepare a project in Kanzi Studio. You start working with material types, materials, and textures in the next step.
In this step you first create a new project, import the content to your project, and define the background for the scene of your project.
Assets for the tutorial
The assets you use in this tutorial are stored in <KanziWorkspace>/Tutorials/Materials textures and rendering/Assets:
- Assets/3DAssets/Car.fbx contains a 3D model of a car.
- Assets/Textures/Car/CarBody.png is a texture for the car body.
- Assets/Textures/Car/CarRim.png is a texture for the rims.
- Assets/Textures/Car/CarTire.png is a texture for the tires.
- Assets/Textures/Car/RenderMap.png is a render map for the car.
- Assets/Textures/Cubemap directory contains the images for the six faces of the cubemap texture.
Completed directory contains the completed Kanzi Studio project of this tutorial.
Create a new Kanzi Studio project and import content
-
In the Kanzi Studio Quick Start window click New Project...:
- Name your project.
- For the Default Material Type select Empty.
Leave all other settings as they are, and click OK.
- In the Project window you can see the structure of your project.
- In the Assets window located in the bottom part of the Kanzi Studio window click Import Assets.
- Go to the <KanziWorkspace>/Tutorials/Materials textures and rendering and import the content of the 3DAssets and Textures directories.
Kanzi Studio imports the assets and shows them in the Assets window.
- In the Project drag and drop the Prefabs > Car scene to the Viewport 2D to make the imported content visible in the Preview.
When asked whether you want to replace the existing Viewport 2D scene, click Yes.
You can now see the imported content in the Preview.
Create the background and the floor below the car
- In the Project select the RootPage, in the Properties set the Background Brush property to <Create color brush...>.
Kanzi Studio creates a black color brush and sets the Background Brush property of the RootPage to use that color brush.
Tip You can find the list of all brushes in a project in Library > Materials and Textures > Brushes.
- In the Library right-click Materials and Textures and select Load Material Type From Disk, go to <KanziInstallation>/Studio/Asset Library/MaterialTypes/General, select PhongTextured.kzmat material type, and click Open.
Kanzi Studio adds PhongTextured material type to Materials and Textures > MaterialTypes.
You can use this material type for all materials in which you want to use textures.
- In the Library > Materials and Textures > Materials select the Floor_1 material, and in the Properties set:
- Material Type to PhongTextured
- Ambient Color Light (L) attribute to 150, all other values to 0
- Diffuse Color Light (L) attribute to 20, all other values to 0
- Texture to RenderMap.png
Floor_1 material defines the material that is used for the floor below the car. In this step you set the Floor_1 material to a material type that allows you to use textures, and apply a texture with the shadow of the car.
< PREVIOUS STEP
NEXT STEP >
See also
To find out more about importing content to your projects, see Importing.
To find out more about brushes, see Using brushes.
Open topic with navigation